<?php

namespace Database\Factories;

use App\Models\SeckillUser;
use Illuminate\Database\Eloquent\Factories\Factory;

class SeckillUserFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = SeckillUser::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'seckill_id' => $this->faker->numberBetween(1,2),
            'user_id' =>  $this->faker->numberBetween(1,2),
            'seckill_price' => $this->faker->randomFloat(2, 0, 50),
            'num' => $this->faker->numberBetween(1,20),
            'status' => $this->faker->randomElement(['participating','endOfActivitySuccess','endOfActivityFail']),
        ];
    }
}
